package com.g.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import com.g.service.RibbonService;

@RestController
public class RibbonController {
	
	private static final String REST_URL_PREFIX = "http://providerSayhello/home";
	
	@Autowired
    private RestTemplate restTemplate;
	@Autowired
	RibbonService ribbonService;
	
	
	@RequestMapping("/say")
	public String sayHello() {
		return ribbonService.sayHello();
	}
}
